package com.example.commoditymanagementsystemspringboot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author 雷族
 */
@SpringBootApplication
public class CommodityManagementSystemSpringbootApplication implements WebMvcConfigurer {

    public static void main(String[] args) {
        SpringApplication.run(CommodityManagementSystemSpringbootApplication.class, args);
    }

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/").setViewName("login");
    }
}
